package com.feeling.oafeeling.service.impl;

import com.feeling.oafeeling.mapper.CheckReviewRuleMapper;
import com.feeling.oafeeling.mapper.CheckStepMapper;
import com.feeling.oafeeling.service.ICheckStepService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by IntelliJ IDEA.
 *
 * @Author : LiuLi
 * @create 2023/6/23 16:35
 */
@Service
public class CheckStepServiceImpl implements ICheckStepService {

    @Autowired
    private CheckStepMapper checkStepMapper;

    @Autowired
    private CheckReviewRuleMapper checkReviewRuleMapper;

    @Override
    public Long getStepId(Long userId) {
        return checkStepMapper.getOrdreNumber(checkReviewRuleMapper.getStepId(userId));
    }
}
